Adwaita: prevent devel styling break selection mode
authorJakub Steiner <jimmac@gmail.com>
Mon, 22 Oct 2018 08:31:20 +0000 (10:31 +0200)
committerJakub Steiner <jimmac@gmail.com>
Mon, 22 Oct 2018 08:31:20 +0000 (10:31 +0200)
- Selection mode does not get the special devel styling.

- removed teh last-child() selector for it doesn't work anymore.
  Better style all section of the headerbar than none. Proper fix pending.

https://source.puri.sm/Librem5/libhandy/issues/57

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index b2f7bfe7f365e149673bb2ec91db28a80b64b853..ecd7ad2c0cb0026c61575c5928337a4d714b3206 100644 (file)
@@ -1723,7 +1723,7 @@ headerbar { // headerbar border rounding
 // Development versions of apps to use a differently styled headerbar
 
 window.devel {    
-  headerbar:last-child {
+  headerbar.titlebar:not(.selection-mode) {
     background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat,
                 linear-gradient(to left, mix($selected_bg_color, $bg_color, 10%) 8%, $bg_color 25%);
     color: transparentize($fg_color,.9);
index 4b362f5505a7b85eb68bfc28cc049d549262cd4b..14449c3997c464e93afcee39c023f95d117e8e54 100644 (file)
@@ -694,9 +694,9 @@ window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparen
 
 .titlebar:not(headerbar) > separator { background-color: #1b1f20; }
 
-window.devel headerbar { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #313d45 8%, #33393b 25%); color: rgba(238, 238, 236, 0.1); }
+window.devel headerbar.titlebar:not(.selection-mode) { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #313d45 8%, #33393b 25%); color: rgba(238, 238, 236, 0.1); }
 
-window.devel headerbar label { color: #eeeeec; }
+window.devel headerbar.titlebar:not(.selection-mode) label { color: #eeeeec; }
 
 /************ Pathbars * */
 .path-bar button.text-button, .path-bar button.image-button, .path-bar button { padding-left: 4px; padding-right: 4px; }
index 67aef82932846f61ac7347c4dec2fb899b62dd92..71f0a2695eeb1b09e663b73bc540ac825428c3a2 100644 (file)
@@ -702,9 +702,9 @@ window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparen
 
 .titlebar:not(headerbar) > separator { background-color: #b6b6b3; }
 
-window.devel headerbar { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #d8dfe6 8%, #e8e8e7 25%); color: rgba(46, 52, 54, 0.1); }
+window.devel headerbar.titlebar:not(.selection-mode) { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #d8dfe6 8%, #e8e8e7 25%); color: rgba(46, 52, 54, 0.1); }
 
-window.devel headerbar label { color: #2e3436; }
+window.devel headerbar.titlebar:not(.selection-mode) label { color: #2e3436; }
 
 /************ Pathbars * */
 .path-bar button.text-button, .path-bar button.image-button, .path-bar button { padding-left: 4px; padding-right: 4px; }